Skip to content

feat: add gpt-5.2-codex model#623

Merged
rekram1-node merged 2 commits intoanomalyco:devfrom
cyhhao:add-gpt-5-2-codex
Jan 14, 2026
Merged

feat: add gpt-5.2-codex model#623
rekram1-node merged 2 commits intoanomalyco:devfrom
cyhhao:add-gpt-5-2-codex

Conversation

@cyhhao
Copy link
Contributor

@cyhhao cyhhao commented Jan 10, 2026

Background

OpenAI’s official Codex CLI ships gpt-5.2-codex as a first-class model preset (see model_presets.rs) and uses it as the default ChatGPT/Codex model (see manager.rs). However, models.dev currently lacks this model entry.

Change

  • Add providers/openai/models/gpt-5.2-codex.toml
  • Align specs with gpt-5.2 (context window, pricing, knowledge date, etc.)

Notes

  • In the Codex CLI preset list, gpt-5.2-codex is marked supported_in_api: false, so this appears to be a Codex/ChatGPT channel model rather than a public API-key model. If the fields should differ, I’m happy to adjust.

Verification

  • bun validate

@cyhhao cyhhao changed the title feat: 添加 gpt-5.2-codex 模型 feat: add gpt-5.2-codex model Jan 10, 2026
@rekram1-node
Copy link
Contributor

since it isnt available via api it doesnt mae sense to add here rn

@cyhhao
Copy link
Contributor Author

cyhhao commented Jan 11, 2026

@rekram1-node But OpenCode has just supported Codex's OAuth authentication. If we don't add it, how can we use this model in this mode?

@rekram1-node
Copy link
Contributor

@rekram1-node rekram1-node merged commit 949f9b9 into anomalyco:dev Jan 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants